#include"stl_reader.h"
#include<iostream>
int main()
{
  stl_reader::StlMesh <float, unsigned int> mesh("fine.stl");

  for (size_t isolid = 0; isolid < mesh.num_solids(); ++isolid)
  {
	  std::cout << "solid " << isolid << std::endl;

	  for (size_t itri = mesh.solid_tris_begin(isolid); itri < mesh.solid_tris_end(isolid); ++itri)
	  {
		  const float* n = mesh.tri_normal(itri);
		  auto cell = mesh.vrt_coords(itri);
		  std::cout << "normal of triangle " << itri << ": " << "(" << n[0] << ", " << n[1] << ", " << n[2] << ")\n";
	  }
  }
}